package com.sky.vo;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderVO {
    private Long id;
    private String orderNo;
    private Long studentId;
    private Long merchantId;
    private String fileName;
    private Integer copies;
    private BigDecimal amount;
    private String status;
    private String deliveryMethod;
    private String deliveryAddress;
    private String notes;
    private LocalDateTime orderTime;
    private LocalDateTime completeTime;
    private List<OrderItemVO> items;
    // 添加学生名称和商家名称
    private String studentName;
    private String merchantName;
    // 学生联系电话
    private String contact;

    @Data
    public static class OrderItemVO {
        private Long productId;
        private String productName;
        private Integer quantity;
        private BigDecimal unitPrice;
        private BigDecimal totalPrice;
    }
}